<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page trimDirectiveWhitespaces="true"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<div class="widget-box">
	<div class="widget-header header-color-pink">
		<h5>
			<i class="icon-edit"></i>修改渗压计
		</h5>

		<div class="widget-toolbar no-border">
			<button id="back" class="btn btn-xs btn-yellow bigger" onclick="trans2('/sensor/osmometer');">
				<i class="icon-arrow-left"></i> 返回
			</button>
		</div>
	</div>

	<div class="widget-body">
		<div class="widget-main">

			<form class="form-horizontal" id="updateOsmometerForm" action="" method="post">

				<div class="space-4"></div>

				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right"> 编号 </label>
					<div class="col-sm-3">
						<input type="text" name="code" id="code" value="${osmometer.code}" placeholder="传感器编号 必填" class="col-xs-5 col-sm-12" />
					</div>

					<label class="col-sm-2 control-label no-padding-right"> 名称 </label>
					<div class="col-sm-3">
						<input type="text" name="name" id="name" value="${osmometer.name}" placeholder="传感器名称 必填" class="col-xs-5 col-sm-12" />
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right"> 序号 </label>
					<div class="col-sm-3">
						<input type="text" name="num" id="num" value="${osmometer.num}" placeholder="序号 必填" class="col-xs-5 col-sm-12" />
					</div>

					<label class="col-sm-2 control-label no-padding-right"> 断面描述 </label>
					<div class="col-sm-3">
						<input type="text" name="sectdes" id="sectdes" value="${osmometer.sectdes}" placeholder="断面描述 必填" class="col-xs-5 col-sm-12" />
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right"> 埋设深度(cm) </label>
					<div class="col-sm-3">
						<input type="text" name="depth" id="depth" value="${osmometer.depth}" placeholder="埋设深度 必填" class="col-xs-5 col-sm-12" />
					</div>

					<label class="col-sm-2 control-label no-padding-right"> 报警深度(cm) </label>
					<div class="col-sm-3">
						<input type="text" name="alarm" id="alarm" value="${osmometer.alarm}" placeholder="最小埋设深度 必填" class="col-xs-5 col-sm-12" />
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right"> 安装位置 </label>
					<div class="col-sm-3">
						<input type="text" name="pxy" id="pxy" readonly="readonly" value="${osmometer.pxy}" placeholder="安装位置 必填" class="col-xs-5 col-sm-12" />
					</div>

					<label class="col-sm-2 control-label no-padding-right"> 是否启用 </label>
					<div class="col-sm-3">
						<select name="state" id="state" class="col-xs-5 col-sm-12 required" title="必选">
							<option value="0" <c:if test="${osmometer.state==0}">selected="selected"</c:if>>启用</option>
							<option value="1" <c:if test="${osmometer.state==1}">selected="selected"</c:if>>禁用</option>
						</select>
					</div>
				</div>

				<div class="clearfix form-actions">
					<div class="col-md-offset-4 col-md-8">
						<button class="btn btn-info" type="button" onclick="form_submit('updateOsmometerForm','/sensor/osmometer_saveOrUpdate', '监测点管理-渗压传感器');">
							<i class="icon-ok bigger-110"></i> 保存
						</button>
						&nbsp; &nbsp; &nbsp;
						<button onclick="trans2('/sensor/osmometer');" class="btn" type="reset">
							<i class="icon-undo bigger-110"></i> 取消
						</button>
					</div>
				</div>

				<input id="id" type="hidden" name="id" value="${osmometer.id}" />
			</form>

		</div>

	</div>
</div>
<jsp:include page="../../pxy.jsp"></jsp:include>
